Add github actions deployment workflow#4
Merged
ajeetchaulagain merged 10 commits intomainfrom Mar 29, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a GitHub Actions workflow for automated deployment, improves the Lambda layer build process, and updates TypeScript build configuration to exclude infrastructure code. The changes streamline CI/CD and ensure a cleaner build output.
CI/CD Automation:
.github/workflows/deploy.yml) to automate deployment of the CDK stack on pushes and pull requests to themainbranch. This workflow checks out code, sets up Node.js, installs dependencies, builds the application and Lambda layer, configures AWS credentials, installs CDK dependencies, and deploys the CDK stack.Build Process Improvements:
build:lambda-layerscript inpackage.jsonto ensure thelayer/nodejsdirectory exists before copying files, preventing potential build errors.TypeScript Configuration:
tsconfig.build.jsonto explicitly set therootDirand exclude theinfradirectory from the build, ensuring that infrastructure code is not included in the compiled output.